home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / mac / files / ID99MENU.DIR / 00018_juror hilite box script.ls < prev    next >
Encoding:
Text File  |  1999-04-29  |  817 b   |  37 lines

  1. property s, mycomment, myjuror
  2. global firstjurorhilite, jurorcomments, currtitle, jurorspeaking, demofolder, talkaboutbronze
  3.  
  4. on beginSprite me
  5.   s = me.spriteNum
  6.   mycomment = 0
  7.   myjuror = s - firstjurorhilite + 1
  8. end
  9.  
  10. on prepareFrame me
  11.   sprite(s).visible = mycomment
  12.   if jurorspeaking = myjuror then
  13.   end if
  14. end
  15.  
  16. on switchtext me, thetitle
  17.   whichcomment = getAt(getAt(jurorcomments, thetitle), myjuror)
  18.   mycomment = (whichcomment <> EMPTY) and ((currtitle < 29) or (talkaboutbronze = 1))
  19. end
  20.  
  21. on growup
  22.   mycomment = 0
  23. end
  24.  
  25. on mouseUp
  26.   if the doubleClick then
  27.     exit
  28.   end if
  29.   if soundBusy(4) and (jurorspeaking = myjuror) then
  30.     sound stop 4
  31.     exit
  32.   end if
  33.   whichcomment = getAt(getAt(jurorcomments, currtitle), myjuror)
  34.   sound playFile 4, demofolder & whichcomment
  35.   jurorspeaking = myjuror
  36. end
  37.